<?php


namespace app\common\service\article;


use app\admin\model\ArticleCategory;

class CategoryService
{

    /**
     * Author:YangXinPeng
     * 下拉选择文章分类
     * @return \think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function findPid()
    {
        $data = ArticleCategory::field('id,title')->select();
        $data && $data->toArray();
        return $data;
    }
}